import * as React from 'react';
import { Point, Range, OperaType } from '../../reducer/const';
import { PathString } from '../../util/eventUtil';

import { INodeProps } from './TaskNode';
import BranchNode from './BranchNode';


export default class MegerNode extends BranchNode {

    constructor(props: INodeProps) {
        super(props);
    }


    getIconPath(range: Range) {
        const sizev1: number = 8;
        const center: Point = new Point(range.x + range.height / 2, range.y + range.height / 2);
        const pathString: PathString = new PathString();

        pathString.M(center.x - sizev1, center.y - this.strokeIconWidth / 2).L(center.x + sizev1, center.y - this.strokeIconWidth / 2);
        pathString.M(center.x + sizev1, center.y + this.strokeIconWidth / 2).L(center.x - sizev1, center.y + this.strokeIconWidth / 2);
        pathString.Z();

        return pathString.toString();
    }


}
